<html>    
  <head> 
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <script type="text/javascript" src="https://code.jquery.com/jquery-1.11.0.min.js"></script>
    <script src="http://maps.googleapis.com/maps/api/js?sensor=false" type="text/javascript"></script>
    <script type="text/javascript" src="../gmap3.js"></script>
    <style>
      .gmap3{
        margin: 20px auto;
        border: 1px dashed #C0C0C0;
        width: 500px;
        height: 250px;
      }
      button{
        display: block;
        margin: 10px auto;
      }
    </style>
    
    <script type="text/javascript">
      $(function(){
        $('#test1').gmap3();
        
        $("button").click(function(){
          $('#test1')
            .width("1000px")
            .height("500px")
            //.gmap3({trigger:{eventName:"resize"}}); 
            .gmap3({trigger:"resize"});
          $(this).remove();
        });
        
      });
    </script>
  <body>
    <button>Increase size</button>
    <div id="test1" class="gmap3"></div>
  </body>
</html>